package com.cxx.purchasecharge.dal;

import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.cxx.purchasecharge.core.model.persistence.CustomerFollow;
import com.cxx.purchasecharge.dal.common.GenericCRUDDao;

@Transactional
public interface CustomerFollowDao extends GenericCRUDDao <CustomerFollow, Long>
{

    public CustomerFollow findById (long id);

    @Query (value = "select c from CustomerFollow c where c.customerName=?1")
    public CustomerFollow findByCustomerName (String customerName);

}
